package com.example.demo.controller;

import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试Controller
 *
 * @author tulc
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    /**
     * 查用户信息
     *
     * @param mobile
     *      手机号
     * @return
     */
    @RequestMapping("/selectUseInfo")
    public String selectUseInfo(String mobile) {
        return testService.selectUseInfo(mobile);
    }

    /**
     * 查学生信息
     *
     * @param name
     *      姓名
     * @return
     */
    @RequestMapping("/selectStudent")
    public String selectStudent(String name) {
        return testService.selectStudent(name);
    }

}
